﻿@model IEnumerable<string>

@Html.ActionLink( "Home", "List", "Product" )

@foreach ( var link in this.Model )
{
    @Html.RouteLink( link, new
    {
        Controller = "Product",
        Action = "List",
        Category = link,
        Page = 1
    },
    new
    {
        @Class = link == this.ViewBag.SelectedCategory ? "selected" : null
    } );
}